import json
import undetected_chromedriver as uc
import json
from lxml import etree

with open('../file/test1.txt', 'r', encoding='utf-8') as file:
    content = file.read()

# print(content)
html = etree.fromstring(content,etree.HTMLParser())
result = html.xpath('//tbody//a/text()')
for item in result:
    print(item)

# 获取 a 下面的链接地址
result2 = html.xpath('//tbody//a/@href')
for item in result2:
    print(item)



